package top.system.dept.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import top.system.dept.pojo.User;

/**
 * @author: Amosen
 * @time: 2021-5-16
 */

@Repository
public interface UserMapper {

	public User getUserById(@Param("userId") Integer userId);

	public User getUserByAccount(@Param("account") String account);

	public List<User> getUserByAuth(@Param("auth") Integer auth);

	public List<User> getAllUsers(Integer pageNum, Integer pageSize);

	public int updateUser(User user);

	public int addUser(User user);

	public int deleteUserById(@Param("userId") Integer userId);

}
